/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package program.beans;

import java.awt.Image;
import javax.swing.JOptionPane;

/**
 * Beans class to represent a page with pageNumber and a image as attributes
 * 
 * Responsible: Patrick
 */
public class Page implements Cloneable{
    
    private int pageNumber;
    private Image image;

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Page(int pageNumber, Image image) {
        this.pageNumber = pageNumber;
        this.image = image;
    }

    @Override
    public Object clone()
    {
        Object o = null;
        try {
            o= super.clone();
        } catch (CloneNotSupportedException ex) {
                        JOptionPane.showMessageDialog(null, ex);

        }
        
        return o;
    }
}